package main

import (
	"flag"
	"fmt"
	"go2"
	"go2/log"
	"os"
)

var (
	m_cli_proxy_addr string
	m_cli_log        int
)

func help() {
	v := flag.Bool("v", false, "show version info")

	m_cli_proxy_addr = *flag.String("addr", ":8001", "proxy listen address")
	flag.IntVar(&m_cli_log, "log", 0, "log level")

	flag.Parse()

	if *v {
		fmt.Print(go2.BuildVersion())
		os.Exit(0)
	}

	log.SetLogLevel(m_cli_log)
}
